import requests

# GET请求

# res = requests.get('http://127.0.0.1:5000/request/?name=lisi&age=33&name=wangwu')
# print(res.text)

# res = requests.post('http://127.0.0.1:5000/request/', data={'name': 'lucy', 'age': 33})
# print(res.text)

#cookie
res = requests.get('http://127.0.0.1:5000/request/?name=lisi&age=33', cookies={'name': 'hello'})
print(res.text)
